
	#include<stdio.h>
	#include<conio.h>
	#include<alloc.h>

	struct Student {

	 int id;
	 int age;

	};

	void main() {

	 int n, i;

	 FILE *fp;

	 Student std[3];

	 clrscr();

	 fp = fopen("std.txt","r");

	 //std = (Student *) malloc(n * sizeof(struct Student));

	 /*printf("How Many Students ? : ");
	 scanf("%d",&n);*/

	 /*for(i = 0; i < 3; i++) {
	  scanf("%d%d",&std[i].id, &std[i].age);

	  fwrite(&std,sizeof(std),1,fp);

	 }*/



	 for(i = 0; i < 3; i++) {

	  fread(&std,sizeof(std),1,fp);
	  printf("%d %d\n",std[i].id,std[i].age);

	 }

	 fclose(fp);

	 getch();



	}

